'''
Created on 2013-5-7

@author: darcywang


import httplib
httplib.HTTPConnection.debuglevel = 1

import urllib2

request = urllib2.Request("http://www.baidu.com")
request.add_header("User-Agent", "abc")
opener = urllib2.build_opener()
f = opener.open(request).read()
'''
import re

if __name__ == '__main__':
    pattern = re.compile(r"^http://ju\.taobao\.com.*")
    print re.match(pattern, "http://ju.taobao.com")